package com.advertisementsystem.Dto;


import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class TimeSlot {
    @NotNull (message = "开始时间不能为空")
    @Pattern(regexp = "([01]?[0-9]|2[0-3]):[0-5][0-9]", message = "时间格式错误")
    private String startTime;

    @NotNull(message = "结束时间不能为空")
    @Pattern(regexp = "([01]?[0-9]|2[0-3]):[0-5][0-9]", message = "时间格式错误")
    private String endTime;
}
